<?php if (!isset($v_sval)) exit; ?>
<?php
$v_offset = (isset($_REQUEST["hdn_offset"])) ? $_REQUEST["hdn_offset"] : 0;
$v_num_row = (isset($_REQUEST["hdn_num_row"])) ? $_REQUEST["hdn_num_row"] : SYS_ITEMS_PER_PAGE;
$v_album_id = (isset($_REQUEST["txt_album_id"])) ? $_REQUEST["txt_album_id"] : 0;
$v_album_title = (isset($_REQUEST["txt_album_title"])) ? $_REQUEST["txt_album_title"] : 0;
$v_album_detail = (isset($_REQUEST["txt_album_detail"])) ? $_REQUEST["txt_album_detail"] : 0;
$v_account_id = (isset($_REQUEST["txt_account_id"])) ? $_REQUEST["txt_account_id"] : 0;
		
$v_where_clause = "";
$rs_all_album = getAllAlbum($v_where_clause,$v_offset ,$v_num_row);
$v_dsp_album_list = '<div>
							<div class="element_title">
								<div class="f_left label_60" align="center">'._LB_ORDER.'</div>
								<div class="f_left label_240">'._LB_NAME.'</div>
								<div class="f_left label_60" align="center">#</div>
							</div>
						<div class="clear height_3"></div>';
    $v_inc = 1;
while ( $arr_album = mysql_fetch_array($rs_all_album,MYSQL_NUM)){
	$v_album_id=$arr_album["0"];
	$v_album_title=$arr_album["1"];
	$v_album_detail=$arr_album["2"];
	$v_account_id=$arr_album["3"];
	
	$v_dsp_album_list .='
	<div class="element">
		<div class="contain_album" id="contain_album_'.$v_album_id.'">
				<div class="f_left label_60" align="center">'.$v_inc.'.</div>
			<div class="f_left label_240">
						<a href="javascript:void(0)" onclick="load_album_detail(\''.$v_album_id.'\')">'.$v_album_id.'</a>                 
			</div>
			<div class="f_left label_60" align="center">
					<a onclick=\'if(!confirm("Chac chan chua")){return false;}\' href="?a=ACC&acc=ALBU&albu=ALBU&albu=D&hdn_album_id='.$v_album_id.'">
						'._IMG_DELETE.'</a>
			</div>
			<div class="clear height_3"></div>
		</div>
    </div>';	
        $v_inc++;

}
$v_dsp_album_list .='</div>';		
$v_number_of_all_result = countAll($v_where_clause,'TB_ALBUM');
?>
